import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class LamdaTest {

    public static void main(String[] args) {
        int[] array = {1, 2, 3};
        List<Integer> list = Arrays.stream(array).boxed().collect(ArrayList::new, ArrayList::add, ArrayList::addAll);
        list.forEach(System.out::println);
    }
}
